package 极客时间.concurrence.并发编程理论基础.面向对象写多线程;

/**
 * @Author idea
 * @Date created in 8:28 上午 2020/7/22
 */
public class SafeWMV2 {

    private final int upper;

    private final int lower;

    public SafeWMV2(int upper,int lower){
        if(upper<lower){
            throw new RuntimeException("上限和下限不一致");
        }
        this.upper=upper;
        this.lower=lower;
    }
}
